package com.registration.controller;


import com.registration.service.RoleMenuService;


import com.registration.util.JsonResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/RoleMenuController")
@CrossOrigin
public class RoleMenuController {
    @Autowired
    RoleMenuService roleMenuService;

    JsonResponse jsonResponse=new JsonResponse();

    @GetMapping("/getRoleMenuList")
    public JsonResponse getRoleMenuList(Integer role_id) {
        jsonResponse.setCode(0);
        jsonResponse.setData(roleMenuService.getRoleMenuList(role_id));
        return jsonResponse;
    }

}
